home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / SciAn / src / ScianFiles.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  1KB  |  54 lines

  1. /*ScianFiles.h
  2.   External stuff for ScianFiles.c
  3.   Eric Pepke
  4.   August 17, 1990
  5. */
  6.  
  7. #define ALLOCTEXTBUF    200        /*Alloc chunk for text*/
  8. /*Text buf type for keeping text*/
  9. typedef struct
  10.     {
  11.     long builtTextLength;        /*Length of the built text*/
  12.     long lastChar;            /*Index of the last char (NULL) in the text*/
  13.     char *builtText;        /*The text itself*/
  14.     } TextBuf;
  15.  
  16. extern ObjPtr fileClass;
  17. extern char *curFileName;
  18.  
  19. /*Is file predicate*/
  20. #define IsFile(object) IntVarEql(object, CLASSID, CLASS_FILE)
  21.  
  22. #ifdef PROTO
  23. void InitFiles(void);
  24. void KillFiles(void);
  25. void DefineFormat(char *, char *, ObjPtr (*reader)(), Bool (*writer)());
  26. void ReadFile(char *, char *);
  27. int FormatInfo(int, char *, char *);
  28. ObjPtr NewFileReader(char *name);
  29. ObjPtr ReadFormattedFile(ObjPtr, char *name);
  30. ObjPtr FindFormatReader(char *format);
  31. ObjPtr FindExtensionReader(char *ext);
  32. WinInfoPtr FileReadersWindow(void);
  33. ObjPtr MakeDatasetName(char *);
  34. void ReadObjectControls(ObjPtr, ObjPtr, Bool);
  35. void SaveObjectControls(ObjPtr, ObjPtr);
  36. void DoSaveObject(void);
  37. void FileFormatError(char *, char *);
  38. #else
  39. void InitFiles();
  40. void KillFiles();
  41. void DefineFormat();
  42. void ReadFile();
  43. ObjPtr NewFileReader();
  44. ObjPtr ReadFormattedFile();
  45. ObjPtr FindFormatReader();
  46. ObjPtr FindExtensionReader();
  47. WinInfoPtr FileReadersWindow();
  48. ObjPtr MakeDatasetName();
  49. void ReadObjectControls();
  50. void SaveObjectControls();
  51. void DoSaveObject();
  52. void FileFormatError();
  53. #endif
  54.